<?php
include("../inc/conn.inc");
include("../class/html_cache.php");
$hover=2;
$c_rs=@mysql_query("select cat_name from catalog where id='".$_GET['id']."'");
$c_row=@mysql_fetch_array($c_rs);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?=$c_row[cat_name]?>-<?=$c_row[cat_name]?>价格-<?=$c_row[cat_name]?>产品供应-最新<?=$c_row[cat_name]?>产品供应信息</title>
<meta name="description" content="<?=$c_row[cat_name]?>，<?=$c_row[cat_name]?>产品，产品供应，三帝贸易网产品目录为您提供的<?=$c_row[cat_name]?>产品生产制造商、供应商、出口商名录，内含丰富的中国产品行业信息与最新资讯。" />
<meta name="keywords" content="<?=$c_row[cat_name]?>，<?=$c_row[cat_name]?>产品，<?=$c_row[cat_name]?>价格,<?=$c_row[cat_name]?>产品列表，<?=$c_row[cat_name]?>工厂，<?=$c_row[cat_name]?>公司，三帝贸易网" />
<link href="/css/body.css" rel="stylesheet" type="text/css" />

<link href="/Supply/css/classlist.css" rel="stylesheet" type="text/css" />
<link href="/css/foot.css" rel="stylesheet" type="text/css" />

<link href="../css/head.css" rel="stylesheet" type="text/css" />


<script language="javascript">
function list(idstr){
	var name1="subtree"+idstr;
	var name2="img"+idstr;
	var objectobj=document.getElementById(name1);
	var imgobj=document.getElementById(name2);
	
	if(objectobj.style.display=="none"){
		for(i=1;i<100;i++){
			var name3="img"+i;
			var name="subtree"+i;
			var o=document.getElementById(name);
			if(o!=undefined){
				o.style.display="none";
				var image=document.getElementById(name3);
				image.src="/images/ico04.gif";
			}
		}
		objectobj.style.display="";
		imgobj.src="/images/ico03.gif";
	}
	else{
		objectobj.style.display="none";
		imgobj.src="/images/ico04.gif";
	}
}
</script>
</head>
<body>
<?php include("../inc/head_top.php")?>
<?php include("../inc/index_search.php")?>
<?php include("../inc/menu.php");?>
<div id="mian" class="topside6 side">
<div class="title">您所在的位置：<a href="/">首页</a> >> <a href="/supply">供应</a> >> <?=$c_row[cat_name]?></div>
<div class="onl"></div>
</div>
<div id="mian" class="topside20 downside20 sideyellow">
<script type="text/javascript">/*960*90，创建于2011-3-9*/ var cpro_id = 'u403357';</script><script src="http://cpro.baidu.com/cpro/ui/c.js" type="text/javascript"></script>
</div>
<div id="mian" class="topside6">
<div class="rightmain">
<div class="News sideyellow">
<div class="title4">最新供应</div>
<div class="div_3">
<ul>
<?php //产品
$rs=@mysql_query("select id,p_title,p_addtime from product where p_sh=1 and catalog_id1='$_GET[id]' order by p_addtime desc, id asc limit 24");

while($row=@mysql_fetch_array($rs)){
?>
<LI class="sales"><span>[<?=date("m-d",strtotime($row[p_addtime]))?>]</span><a href="/supply/<?=$row['id']?>.html" target="_blank"><?=mb_substr($row[p_title],0,20,'utf-8')?><?php if(strlen($row[p_title])>24){echo "...";}?></a></LI>
<?php }?>  
</ul>
</div>

<div class="onl"></div>
</div>

<div class="News sideyellow downside20 topside20" align="center">
<script type="text/javascript">/*640*60，创建于2011-9-5*/ var cpro_id = 'u600589';</script><script src="http://cpro.baidu.com/cpro/ui/c.js" type="text/javascript"></script>
</div>

<div class="News sideyellow topside6">
<div class="title4">推荐产品</div>
<ul class="imgbox">
<?php
$rs=@mysql_query("select id,p_title,p_info,picture from product where p_sh=1 and catalog_id1='$_GET[id]'  order by p_tj asc, id desc limit 12");
while($row=@mysql_fetch_array($rs)){
?>
<li>
<div class="box1">
<a href="/supply/<?=$row['id']?>.html" target="_blank">
<?php if($row[picture]){?>
<img src="http://img.sandib2b.cn/<?=$row[picture]?>" alt="<?=$row[p_title]?>"  border="0" width="90" height="102" /><? //=imgstr("http://www.sandib2b.cn/upfile/$row[picture]","90","102")?>
<?php }else{?>
<img src="/images/prono88.gif" width="90" height="102" border="0" />
<?php }?></a>
</div>
<div class="proname b"><a href="/supply/<?=$row['id']?>.html" target="_blank"><?=mb_substr($row[p_title],0,7,'utf-8')?></a></div>
<div class="protxt" style="word-wrap: break-word;"><?=mb_substr(strip_tags($row[p_info]),0,28,'utf-8')?></div>
</li>
<?php }?>

<div class="onl"></div>
</ul>
</div>
<div class="News sideyellow topside6">
<div class="title4">最新产品</div>
<ul class="imgbox">
<?php
$rs=@mysql_query("select id,p_title,p_info,picture from product where p_sh=1 and catalog_id1='$_GET[id]' order by p_addtime desc limit 12");
while($row=@mysql_fetch_array($rs)){
?>
<li>
<div class="box1">
<a href="/supply/<?=$row['id']?>.html" target="_blank">
<?php if($row[picture]){?>
<img src="http://img.sandib2b.cn/<?=$row[picture]?>"  alt="<?=$row[p_title]?>" border="0" width="90" height="102"/>
<?php }else{?>
<img src="/images/prono88.gif" width="90" height="102" border="0" />
<?php }?></a>
</div>
<div class="proname b"><a href="/supply/<?=$row['id']?>.html" target="_blank"><?=mb_substr($row[p_title],0,7,'utf-8')?></a></div>
<div class="protxt" style="word-wrap: break-word;"><?=strip_tags(mb_substr($row[p_info],0,28,'utf-8'))?></div>
</li>
<?php }?>

<div class="onl"></div>
</ul>
</div>

</div>
<div class="leftmain">
  <div class="left sideyellow">
<div class="title3 backyellow size14 b"><?=$c_row[cat_name]?>分类</div>

<div class="Class">
<?php $rs=@mysql_query("select id,cat_name,p_num from catalog  where cat_id='".$_GET['id']."'");
      $n=1;
      while($row=@mysql_fetch_array($rs)){
	  $rs2=@mysql_query("select count(id) from catalog where cat_id='".$row['id']."'");
	  $num=@mysql_result($rs2,0);
	  @mysql_free_result($rs2);
?>
<div class="title1 size14">
<?php if($num){?><span><a href="javascript:" onClick="list('<?=$n?>');"><img src="/images/ico04.gif" name="img<?=$n?>" id="img<?=$n?>"  border="0"/></a></span><?php }?><a href="/supply-list/<?=$row['id']?>/1.html" target="_blank"><?=$row[cat_name]?></a>(<?=$row[p_num]?>)</div>
<?php if($num){?><UL id='subtree<?=$n?>' style="display:none;">
<?php $rs2=@mysql_query("select id,cat_name from catalog where cat_id='".$row['id']."'");
      while($row2=@mysql_fetch_array($rs2)){
?>
<LI><A href="/supply-list/<?=$row2['id']?>/1.html" target="_blank"><?=mb_substr($row2[cat_name],0,5,'utf-8')?></A></LI>
<?php }mysql_free_result($rs2);?>
<div class="onl"></div>
</UL><?php }?>
<div class="onl"></div>
<?php $n++;}?>

</div>

</div>
</div>
<div class="onl"></div>
</div>
<div id="mian" class="topside20 downside20 sideyellow">
<script type="text/javascript">/*960*90，创建于2011-3-9*/ var cpro_id = 'u403357';</script><script src="http://cpro.baidu.com/cpro/ui/c.js" type="text/javascript"></script>
</div>
<div id="mian" class="topside6">
<div class="content size14 b" style="color:#FF0000;">
为了节省您的时间，您在求购过程中没找到合适产品或供应商，请发布紧急求购产品信息。让商家联系您。&nbsp;&nbsp;<a href="/caigou/" target="_blank">立即发布紧急求购</a></div>
</div>
<?php include("../inc/foot.php");?>
</body>
</html>
<script type="text/javascript">/*120*270，创建于2011-3-23*/ var cpro_id = 'u419785';</script><script src="http://cpro.baidu.com/cpro/ui/f.js" type="text/javascript"></script>
